package com.study.method;

public class MethodTest4 {
    public static void main(String[] args) {
        // 目标：理解方法在内存中的运行机制
        study();
    }

    public static void eat(){
        System.out.println("吃饭~");
    }
    public static void sleep(){
        System.out.println("睡觉~");
    }
    public static void study(){
        eat();
        System.out.println("学习");
        sleep();
    }

}

